package com.qianya.model.pojo.login.qo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.qianya.model.common.BaseEntity;
import com.qianya.model.pojo.login.vo.LoginUsersVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 部门
 * </p>
 *
 * @author lhl
 * @since 2020-07-02
 */
@Data
@ApiModel(value="LoginDeptQO传入对象", description="部门")
public class LoginDeptQO extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "部门id")
    @TableId(value = "dept_id", type = IdType.UUID)
    private String deptId;

    @ApiModelProperty(value = "部门名称")
    @NotBlank(message = "用户名不能为空")
    @Length(min = 1,max = 8,message = "用户部门不能超过8个字符")
    private String deptName;

    @ApiModelProperty(value = "部门地址")
    @NotBlank(message = "部门地址不能为空")
    @Length(min = 2,max = 100,message = "部门地址不能低于2个字符，不能超过100个字符")
    private String deptAddress;

    @ApiModelProperty(value = "部门描述")
    @NotBlank(message = "部门描述不能为空")
    @Length(min = 5,max = 200,message = "部门描述不能低于5个字符，不能超过200个字符")
    private String deptDesc;

    @ApiModelProperty(value = "部门状态",notes = "0禁用，1启用，空则查所有")
    private Integer deptStatus;

}
